<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
	<title>厨房知识_烹饪技巧_<?=$this->config->item('site_name');?></title>
	<meta name="keywords" content="厨房知识,烹饪技巧,生活妙招" />
	<meta name="description" content="" />
	<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/recipe.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/article.css')?>" rel="stylesheet" type="text/css" media="screen">
	<script src="<?=path_res('static/js/jquery.js')?>"></script>
	<script src="<?=path_res('static/js/functions.js')?>"></script>
</head>
<body>

<? $this->load->view('header'); ?>
<div id="main" class="clearfix">
		<div class="zhutnav" style="margin-bottom:10px;">		
			<? $this->load->view('article_menu'); ?>
		</div>

		<div class="maleft">
			<div class="zzp">
				<?php if ($cid):?>
				<div class="sileft clearfix">
					<div class="khed mrm">
						<a><img class="img12" src="<?=base_url('static/img/chufangbaike.png')?>" alt="<?=$cate_info['cateName']?>"></a>
					</div>
					<h2><?=$cate_info['cateName']?> <span class="smor">厨房百科</span></h2>
					<p><?=$cate_info['content']?> </p>
				</div>
				<?php endif?>
			</div>
			<div>
		        <div class="caidan-list-header">
		            <span>标题</span><span></span>
		        </div>
		        
				<div class="caidan-list">
					<?php foreach( $article_list as $article):?>
				    <div class="caidan-list-item">
				        <span>
				            <a href="<?=site_url('/article/views/'.$article["id"])?>" target="_blank"><?=$article['title']?></a>
				                <span style="color:gray;">(<?=$article['views']?>)</span>
				        </span>
				        <span class="gray-desc" style="margin-right:10px;float:right">
				            <?=date("Y-m-d", $article['addtime'])?>
				        </span>
				    </div>
					<?php endforeach;?>
				</div>

		    </div>

			<div class="mtl">
				<div class="page_PN">
					<div class="pager">
						<?= $this->pagination->create_links();?>
					</div>
				</div>	
			</div>


		</div>
		<div class="maright">
			<div class="hotart mb25">
			<h2>热门文章 <span class="smor"><a href="http://www.douguo.com/article" target="_blank">(更多)</a></span></h2>
			<?php foreach( $article_hot as $hot):?>
			<div class="lictq clearfix">
				<h3><a href="<?=site_url('article/views/'.$hot['id'])?>" target="_blank"><?=$hot['title']?></a></h3>
				<span><?=$hot['views']?> 次阅读</span>
			</div>
			<?php endforeach;?>
		</div>
	</div>
</div>
<? $this->load->view('footer'); ?>